export let students = [
  { name: '张三', age: 12, gender: 'male' },
  { name: '李四', age: 15, gender: 'male' },
  { name: '王五', age: 13, gender: 'male' },
]

export function sayName () {
  console.log('我是学生模块');
}

// CommonJS模块化机制
// module.exports = {
//   students,
//   sayName
// }

// ES6模块化机制
export default {
  name: '张三',
  age: 12
}